package com.lark.service.impl;

import com.lark.mapper.RoleMapper;
import com.lark.pojo.Role;
import com.lark.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public List<Role> roleList() {
        List<Role> roleList = roleMapper.findAll();
        return roleList;
    }

    @Override
    public void roleSave(Role role) {
        roleMapper.insert(role);
    }


}
